package projectmanagerapp

class AdminController {

    def beforeInterceptor = [action:this.&auth]
   
        def index() {
			redirect(controller: "user", action:"list")
			
			 }
		
	
    def auth() {
        if((!session.user) || (session.user.role != "Admin")) {
			  flash.message = "You must have Admin level access to use these features"
			 redirect(uri: "/")
            return false
        }
	
    }
}
